package com.example.demo.entity.dataSource1;

import com.example.demo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;


@ApiModel(value = "StoryEntity新闻稿主体,对应story表")
public class StoryEntity extends BaseEntity
{
//	private static final long serialVersionUID = -6246220057857747087L;
	@ApiModelProperty(value = "新闻稿id")
	private int id;
	private String transmissionId;
	private String storyNumber;
	private String orderId;
	private int feedSourceId;
	@ApiModelProperty(value = "新闻稿语言")
	private int language;
	private Date issueTime;
	private Date createTime;
	private Date updateTime;
	@ApiModelProperty(value = "新闻稿标题")
	private String headline;
	private String subheadlines;
	private String blurbline;
	private String contacts;
	private String dateline;
	private String supplier;
	private String editor;
	private String source;
	private String keywords;
	private int photos;
	private int videos;
	private int files;
	private int rating;
	private String billedAccount;
	private String otherAccount;
	private int sendMediaFlag;
	private int sendJournalistFlag;
	private int sendWebsiteFlag;
	private int sendSocialFlag;
	private String emailLists;
	private String billCodes;
	private String destinations;
	private String clearTimeEmail;
	private String rwreportEmail;
	private int mediaType;
	private int status;
	private String fileName;
	private boolean freeEnhance;
	/** added 20180130 ICO */
	private String specialFlag;
	/** 只有美通社头条会使用该字段，用来同已有的新闻稿进行关联 */
	private String relatedStory;
	/** 用来标识新闻稿类型 新闻稿类型 0-普通新闻稿 1-头条汇总 2-头条单条 */
	private int type;
	

	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getTransmissionId()
	{
		return transmissionId;
	}
	public void setTransmissionId(String transmissionId)
	{
		this.transmissionId = transmissionId;
	}
	public String getStoryNumber()
	{
		return storyNumber;
	}
	public void setStoryNumber(String storyNumber)
	{
		this.storyNumber = storyNumber;
	}
	public String getOrderId()
	{
		return orderId;
	}
	public void setOrderId(String orderId)
	{
		this.orderId = orderId;
	}
	public int getFeedSourceId()
	{
		return feedSourceId;
	}
	public void setFeedSourceId(int feedSourceId)
	{
		this.feedSourceId = feedSourceId;
	}
	public int getLanguage()
	{
		return language;
	}
	public void setLanguage(int language)
	{
		this.language = language;
	}
	public Date getIssueTime()
	{
		return issueTime;
	}
	public void setIssueTime(Date issueTime)
	{
		this.issueTime = issueTime;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	public String getHeadline()
	{
		return headline;
	}
	public void setHeadline(String headline)
	{
		this.headline = headline;
	}
	public String getSubheadlines()
	{
		return subheadlines;
	}
	public void setSubheadlines(String subheadlines)
	{
		this.subheadlines = subheadlines;
	}
	public String getBlurbline()
	{
		return blurbline;
	}
	public void setBlurbline(String blurbline)
	{
		this.blurbline = blurbline;
	}
	public String getContacts()
	{
		return contacts;
	}
	public void setContacts(String contacts)
	{
		this.contacts = contacts;
	}
	public String getDateline()
	{
		return dateline;
	}
	public void setDateline(String dateline)
	{
		this.dateline = dateline;
	}
	public String getSupplier()
	{
		return supplier;
	}
	public void setSupplier(String supplier)
	{
		this.supplier = supplier;
	}
	public String getEditor()
	{
		return editor;
	}
	public void setEditor(String editor)
	{
		this.editor = editor;
	}
	public String getSource()
	{
		return source;
	}
	public void setSource(String source)
	{
		this.source = source;
	}
	public String getKeywords()
	{
		return keywords;
	}
	public void setKeywords(String keywords)
	{
		this.keywords = keywords;
	}
	public int getPhotos()
	{
		return photos;
	}
	public void setPhotos(int photos)
	{
		this.photos = photos;
	}
	public int getVideos()
	{
		return videos;
	}
	public void setVideos(int videos)
	{
		this.videos = videos;
	}
	public int getFiles()
	{
		return files;
	}
	public void setFiles(int files)
	{
		this.files = files;
	}
	public int getRating()
	{
		return rating;
	}
	public void setRating(int rating)
	{
		this.rating = rating;
	}
	public String getBilledAccount()
	{
		return billedAccount;
	}
	public void setBilledAccount(String billedAccount)
	{
		this.billedAccount = billedAccount;
	}
	public String getOtherAccount()
	{
		return otherAccount;
	}
	public void setOtherAccount(String otherAccount)
	{
		this.otherAccount = otherAccount;
	}
	public int getSendMediaFlag()
	{
		return sendMediaFlag;
	}
	public void setSendMediaFlag(int sendMediaFlag)
	{
		this.sendMediaFlag = sendMediaFlag;
	}
	public int getSendJournalistFlag()
	{
		return sendJournalistFlag;
	}
	public void setSendJournalistFlag(int sendJournalistFlag)
	{
		this.sendJournalistFlag = sendJournalistFlag;
	}
	public int getSendWebsiteFlag() 
	{
		return sendWebsiteFlag;
	}
	public void setSendWebsiteFlag(int sendWebsiteFlag) 
	{
		this.sendWebsiteFlag = sendWebsiteFlag;
	}
	public int getSendSocialFlag()
	{
		return sendSocialFlag;
	}
	public void setSendSocialFlag(int sendSocialFlag)
	{
		this.sendSocialFlag = sendSocialFlag;
	}
	public String getEmailLists()
	{
		return emailLists;
	}
	public void setEmailLists(String emailLists)
	{
		this.emailLists = emailLists;
	}
	public String getBillCodes()
	{
		return billCodes;
	}
	public void setBillCodes(String billCodes)
	{
		this.billCodes = billCodes;
	}
	public String getDestinations()
	{
		return destinations;
	}
	public void setDestinations(String destinations)
	{
		this.destinations = destinations;
	}
	public String getClearTimeEmail()
	{
		return clearTimeEmail;
	}
	public void setClearTimeEmail(String clearTimeEmail)
	{
		this.clearTimeEmail = clearTimeEmail;
	}
	public String getRwreportEmail()
	{
		return rwreportEmail;
	}
	public void setRwreportEmail(String rwreportEmail)
	{
		this.rwreportEmail = rwreportEmail;
	}
	public int getMediaType()
	{
		return mediaType;
	}
	public void setMediaType(int mediaType)
	{
		this.mediaType = mediaType;
	}
	public int getStatus()
	{
		return status;
	}
	public void setStatus(int status)
	{
		this.status = status;
	}
    public String getFileName() {
        return fileName;
    }
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
	public boolean isFreeEnhance() {
		return freeEnhance;
	}
	public void setFreeEnhance(boolean freeEnhance) {
		this.freeEnhance = freeEnhance;
	}
	public String getSpecialFlag() {
		return specialFlag;
	}
	public void setSpecialFlag(String specialFlag) {
		this.specialFlag = specialFlag;
	}
	public String getRelatedStory() {
		return relatedStory;
	}
	public void setRelatedStory(String relatedStory) {
		this.relatedStory = relatedStory;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public void initialize()
	{
		transmissionId = "";
		storyNumber = "";
		orderId = "";
		issueTime = new Date();
		createTime = new Date();
		updateTime = new Date();
		headline = "";
		subheadlines = "[]";
		blurbline = "";
		contacts = "[]";
		dateline = "";
		supplier = "";
		editor = "";
		source = "";
		keywords = "";
		billedAccount = "";
		otherAccount = "";
		emailLists = "[]";
		billCodes = "[]";
		destinations = "[]";
		clearTimeEmail = "[]";
		rwreportEmail = "[]";
		status = 0;
		fileName="";
		freeEnhance = false;
		specialFlag = "";
		relatedStory = "[]";
		type = 0;
	}


	public static void main(String[] args) {
		long start = System.currentTimeMillis();
		for(int i=0;i<10000; i++) {
			StoryEntity storyEntity1 = new StoryEntity();
			storyEntity1.setId(1);
			storyEntity1.setTransmissionId("123");
			storyEntity1.setHeadline("123");
			storyEntity1.setType(1);


			StoryEntity storyEntity2 = new StoryEntity();
			storyEntity2.setId(1);
			storyEntity2.setTransmissionId("123");
			storyEntity2.setHeadline("123");
			storyEntity2.setType(1);

			System.out.println(storyEntity1.hashCode());
			System.out.println(storyEntity2.hashCode());
			System.out.println(storyEntity1.equals(storyEntity2));
		}
		long end = System.currentTimeMillis();
		System.out.println("反射compareTo执行一万次,耗时 "+ (end-start));
	}

}